package com.changgou.common.model.response.order;

import com.changgou.common.model.response.ResultCode;
import lombok.ToString;

/*
*   订单异常
* */
@ToString
public enum  OrderCode implements ResultCode {

    ORDER_order_ADD_ERROR(false,23001,"添加订单失败");


    //操作是否成功,true为成功，false操作失败
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;

    private OrderCode(boolean success,int code, String message){
        this.success=success;
        this.code=code;
        this.message=message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
